<!--
模板说明：
-->
#macro(orderPic $type)
#if ($orderField.equals($type)) 
<img src="/images/system/ico/${orderType}.gif">  
#end
#end
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/include/css/admin.css" rel="stylesheet" type="text/css">
<title>信息管理页面</title>
<script language="JavaScript" src="/include/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/ajaxSupport.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/public.js" type="text/JavaScript"></script>
<script language="JavaScript">
function doShow()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要查看的数据！");
return false;
}
window.open("/show.do?cid="+id,"","")
}
function choiceDir()
{
var x=event.screenX;
var y=event.screenY;
var result=window.showModalDialog('/choice.do?parameter=choiceDir','Choice',"dialogLeft:"+x+"px;dialogTop:"+y+"px;dialogWidth:195px;dialogHeight:400px;help:no;status:no");
return result;
}
function doSetTodayHead()
{
ListForm.parameter.value="setTodayHead";
ListForm.submit();
}
function doSetElite()
{
ListForm.parameter.value="setElite";
ListForm.submit();
}
</script>
</head>

<body bgcolor="#EBF0F4" leftmargin="0" rightmargin="6" topmargin="0" bottommargin="1" scroll="no" onselectstart="return false;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="Border">
  <tr>
    <td height="38" align="center" valign="bottom"><table width="96%" height="34"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="middle"><table width="53%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="10%" valign="bottom"><img src="#if ($dir.tagImg) $dir.tagImg #else /images/system/winzip.jpg #end" width="32" height="32"></td>
                <td width="90%" class="titletxt">博客文章列表</td>
          </tr>
        </table></td>
        <td width="100">&nbsp;</td>
        <td width="120">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top">
	<div style="height:100%;overflow:auto;">
	<form id="ListForm" name="ListForm"  method="post" action="/blogNewsDoc.do">		
	   <input type="hidden" name="parameter" value="">	
	   <input type="hidden" name="cid"   value="$!cid">
	   <input type="hidden" name="mulitCid"   value="$!mulitCid">
       <input type="hidden" name="page"   value="$!page">
       <input name="orderField" type="hidden" value="$!orderField">
       <input name="orderType" type="hidden" value="$!orderType">
<!--	   <input name="dirSn" type="hidden" value="$!parentsn"> -->
	      <table width="96%"  border="1" cellpadding="4" cellspacing="0" bordercolor="#30524D" bgcolor="CBD9D9" class="BorderLine" style="border-collapse: collapse" >
            <thead>
			 <tr valign="middle"> 
                <td height="24" colspan="8" align="center" background="/images/system/index_18.gif" class="title1">
				<table width="100%"  border="0">
                  <tr>
                    <td>标题：
                      <input name="queryTitle" type="text" size="15" value="$!queryTitle"></td>
                  <td>栏目：
                    <select name="parentsn" id="parentsn">
                      <option value="">请选择</option>					 $!TagUtil.options($dirService.queryBlogNewsDir($currentUser.userName,1,15).result,"cid","title",$parentsn)					 
                    </select></td>
                    <td>&nbsp;</td>
                    <td><input type="submit" name="Submit4" value="查询" onClick="doSearch();"></td>
                  </tr>
                </table></td>
              </tr>
              <tr valign="middle"> 
                <td width="16" height="24" align="center" background="../images/system/index_18.gif" class="title1"  style="cursor: hand;"><input type="checkbox"  onclick="selectAll(cids,this.checked);"></td>
				<td width="68">操作</td>
                <td width="170" align="center"  style="cursor: hand;" onClick="doSort('title')" class="title1" title="点击按标题排序">标题#orderPic("title")</td>
                <td width="80" align="center" style="cursor: hand;" onClick="doSort('source')" class="title1" title="点击按来源排序">来源#orderPic("source")</td>
                <td width="80" align="center" nowrap style="cursor: hand;" onClick="doSort('author')" class="title1" title="点击按作者排序">作者#orderPic("author")</td>
                <td width="80" align="center" nowrap style="cursor: hand;" onClick="doSort('inputuser')" class="title1" title="点击按发布人排序">发布人#orderPic("inputuser")</td>
                <td width="80" align="center" nowrap style="cursor: hand;" onClick="doSort('displaytime')" class="title1" title="点击按发布日期排序">发布日期#orderPic("displaytime")</td>
                <td align="center" nowrap style="cursor: hand;" onClick="doSort('status')" class="title1" title="点击按发布状态排序">状态#orderPic("status")</td>
              </tr>
            </thead>
            #foreach( $info in $list) 
            <tr bgcolor="#F8FCF8"  class="coolselect" style="cursor:default " id='$!info.cid' onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);" onMouseOver="this.className='MouseOver';" onMouseOut="this.className='MouseOut'"> 
              <td height="23" title="选择此项"><input type="checkbox" name="cids" value="$!info.cid"></td>
<td>
			  	<a href="/blogNewsDoc.do?parameter=show&cid=$!info.cid" target="_blank"><img src="/images/system/view.png" width="16" height="16" border="0" title="浏览"/></a>
				<a href="/blogNewsDoc.do?parameter=edit&cid=$!info.cid"><img src="/images/system/edit.png" width="16" height="16" border="0" title="编辑"/></a>
				<a href="/blogNewsDoc.do?parameter=del&cid=$!info.cid"><img src="/images/system/delete.png" width="16" height="16" border="0" title="删除"/></a>
			  </td>
              <td height="23"><a href="/blogNewsDoc.do?parameter=show&cid=$!info.cid" target="_blank">$!info.title</a></td>
              <td height="23">$!info.source</td>
              <td align="center" nowrap>$!info.author</td>
              <td align="center" nowrap>$!info.inputuser</td>
              <td align="center" nowrap>$CommUtil.formatDate('yyyy-MM-dd H:m',$!info.displaytime)</td>
              <td align="center" nowrap>$!info.showStatus()</td>
            </tr>
            #end 
          </table>  
	    </form>
	  </div>	  
	  </td>
  </tr>
  <tr><td align="center" height="25">
   <table width="92%" height="24"  border="0" cellpadding="0" cellspacing="0">
        <tr valign="bottom">
          <td nowrap>第<strong>$!page</strong>页 共<strong>$!pages</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
        </tr>
      </table>
  </td></tr>
  <tr>
    <td height="40" align="left" valign="middle"><table height="30"  border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="50" align="left" valign="middle">&nbsp;</td>
          <td width="50" align="center" valign="middle"><input type="button" name="Submit" value="添加" onClick="doAdd();"> 
          </td>
          <td width="50" align="center" valign="middle"><input type="button" name="Submit2" value="修改" onClick="doEdit();"></td>
          <td width="100" align="center" valign="middle"><input type="button" name="Submit323" value="推荐文件" onClick="doSetElite();"></td>
          <td width="100" align="center" valign="middle"><input type="button" name="Submit3232" value="今日头条" onClick="doSetTodayHead();"></td>
        <td width="25" align="center" valign="middle"><input type="button" name="Submit322" value="删除" onClick="doDel();"></td>
        </tr>
      </table></td>       
  </tr>
</table>
</body>
</html>
#if ($msg)
<script>
alert('$!msg');</script>
#end
